#!/usr/bin/python
# -*- coding: UTF-8 -*-
import threading
class Mythreading(threading.Thread):
    def __init__(self,func,arg):
        super(Mythreading,self).__init__()
        self.func = func
        self.arg = arg

    def run(self):
        self.func(self.arg)

def my_func(args):
    """
    你可以把任何你想让线程做的事定义在这里
    :param args:
    :return:
    """
    pass

object = Mythreading(my_func, 123)
object.start()